package rest.feign;

import feign.Headers;
import feign.Param;
import feign.RequestLine;
import rest.entity.User;

public interface CallProvider {
    @RequestLine("GET /test")
    String test();

    @RequestLine("POST /getUser/{userid}")
    User getUser(@Param("userid") String userId);

    @RequestLine("POST /sendUser")
    @Headers("Content-Type: application/json") //声明请求内容为JSON
    String sendUser(User user);


}
